<?php

/*
 * The folder structure:
 * 
 *      |test-dir|
 *               |---- dir1|---- file1.txt
 *               |         |---- file2.txt  
 *               |         |---- file3.txt
 *               |
 *               |---- dir2
 *               |   
 *               |---- dir3|---- file2.txt
 * 
 */


/* case 1: 
 * 
 * Both source and destination  file paths are given.
 * The destination file name is the same as the source name.
 * The destination file doesn't exist.
 * The source file gets copied to the destination directory with the same name.
 */

use UC_PHP\FileSystem as FS;

FS\FileSystem::copy_file(
    './test_dir/dir1/file1.txt', './test_dir/dir2/file1.txt');

FS\FileSystem::delete_file('./test_dir/dir2/file1.txt');
